package com.ssh.service;

import java.util.List;

import com.ssh.dao.impl.ProjectBaseInfoDaoImpl;
import com.ssh.model.ProjectBaseInfo;

public class ProjectBaseInfoService {
	private ProjectBaseInfoDaoImpl ProjectBaseInfoDao;

	public ProjectBaseInfoDaoImpl getProjectBaseInfoDao() {
		return ProjectBaseInfoDao;
	}

	public void setProjectBaseInfoDao(ProjectBaseInfoDaoImpl ProjectBaseInfoDao) {
		this.ProjectBaseInfoDao = ProjectBaseInfoDao;
	}

	public void saveProjectBaseInfo(ProjectBaseInfo ProjectBaseInfo) {
		ProjectBaseInfoDao.saveProjectBaseInfo(ProjectBaseInfo);
	}

	public ProjectBaseInfo getProjectBaseInfoById(int id) {
		ProjectBaseInfo ProjectBaseInfo = ProjectBaseInfoDao.getProjectBaseInfoById(id);
		return ProjectBaseInfo;
	}

	public void deleteProjectBaseInfo(ProjectBaseInfo ProjectBaseInfo) {
		ProjectBaseInfoDao.deleteProjectBaseInfo(ProjectBaseInfo);
	}

	public List<ProjectBaseInfo> getAllProjectBaseInfos() {
		List<ProjectBaseInfo> ProjectBaseInfoList = ProjectBaseInfoDao.getAllProjectBaseInfos();
		return ProjectBaseInfoList;
	}
	
	public void modifyProjectBaseInfo(ProjectBaseInfo ProjectBaseInfo) {
		ProjectBaseInfoDao.modifyProjectBaseInfo(ProjectBaseInfo);
	}
}
